<?php
namespace app\houtai\controller\system;
use app\houtai\controller\BaseController;



class LogonController extends  BaseController{
    /**
     *  @brief  : 重定向到Go日志服务器
     *  @return : redirect
     *  @detail :
     */
    public function indexAction(){
        $CHANNELS = $this->GetAdminChannel();
        $channel  = $this->request->param('channel/d',-1);
        $addr = substr($channel,1,4);
        if ($channel > 0 ){
            $this->redirect(config("GO_LOGSERVER").$addr);  //重定向到日志服务器根目录
        }
        return  $this->fetch('',[
            'CHANNELS' =>$CHANNELS,
            'channel' => $channel,
            //'res'     => $res ?? '',
        ]);
    }


}